package cn.well.cloud.quartz.core.task.exception;

import cn.well.cloud.sys.core.exception.enums.BizExceptionEnum;

public class TaskApiException  extends RuntimeException {

    private Integer code;

    private String message;

    public TaskApiException(BizExceptionEnum exceptionEnum) {
        this.code = exceptionEnum.getCode();
        this.message = exceptionEnum.getMessage();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}

